#pragma once


class CSoftStoreWnd;
class CUnIstallWnd;
class CSoftUpdateWnd;
class CDownLoadWnd;
class CMainFramUI :public CWindowWnd,public INotifyUI
{
public:
	CMainFramUI(void);
	~CMainFramUI(void);

	void Notify(TNotifyUI& msg);
	LPCTSTR GetWindowClassName() const;
	LRESULT OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT OnClose(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT OnDestroy(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT OnNcActivate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT OnNcCalcSize(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT OnNcPaint(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT OnNcHitTest(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	void    OnNcLButtonDblClk(WPARAM wParam,LPARAM lParam,BOOL &bHandled);
	LRESULT OnSize(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT OnGetMinMaxInfo(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT OnSysCommand(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT HandleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam);

public:
	CPaintManagerUI m_pm;
private:
	CSoftStoreWnd *m_pSoftWondiw;
	CUnIstallWnd *m_pUnInstallWindow;
	CSoftUpdateWnd *m_pSoftUpdateWindow;
	CDownLoadWnd *m_pDownLoadWindow;
};
